package com.hbnu.thread;

/**
 * @author kittychen
 * @since 2025-10-27 19:52
 */
public class Product implements Runnable {

    private Box box;

    public Product(Box box) {
        this.box = box;
    }

    @Override
    public void run() {
        while (true) {
            box.add();
        }
    }
}
